package io.github.lee.app.unsplash.repository.api

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import io.github.lee.app.unsplash.repository.domain.Photo
import io.github.lee.app.unsplash.repository.domain.UnsplashResponse
import retrofit2.Retrofit
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query



interface UserApi {

    @GET("users/{username}/photos")
    suspend fun userPhotoList(
        @Path("username") username: String,
        @Query("page") page: Int,
        @Query("per_page") size: Int,
        @Query("order_by") orderBy: String? = "latest",
        @Query("stats") stats: Boolean? = false,
        @Query("resolution") resolution: String? = "days",
        @Query("quantity") quantity: Int? = 30,
        @Query("orientation") orientation: String? = null
    ): UnsplashResponse<List<Photo>>

}